<?
include('common/header_1.html');
include('common/autoload.php');

if(isset($_GET['f'])) {
    $f = 1;
    $s1 = "display:none;";
    $s2 = "display:block;";
}
$exist = array(
	'paypiao.12301.cc'=>'200489',
	'www.paypiao.cn'=>'200489',
	'syyry.12301.cc'=>'200514',
	'www.syyry.net'=>'200514',
	'dtdc.12301.cc'=>'100092',
    'fxxt.dtdc.org.cn'=>'100092',
    'freeu.12301.cc'=>'',
    'www.freeu.cn'=>'',
    'smf.12301.cc'=>'100110',
    'trfenxiao.12301.cc'=>'100069',
    'www.trfenxiao.com'=>'100069',
    'hubei.12301.cc'=>'200181',
    'jqzj.12301.cc'=>'502145',
    'yyxpiao.12301.cc'=>'123552',
    'mp.yyx.com.cn'=>'123552',
    'huangshan.12301.cc'=>'123605',
    'hjzl.12301.cc'=>'123682',
    'ty.369trip.cn'=>'123682',
    'douqu.12301.cc'=>'123662',
    'www.douqu.com'=>'123662',
    'okpiao.12301.cc'=>'123707',
    'okpiao.com.cn'=>'123707',
);
$SERVER_NAME = $_SERVER['SERVER_NAME'];
$inviterID = $exist[$SERVER_NAME];
if(!$inviterID){
    $inviterID = $_GET['vid'] ? $_GET['vid']:'';
}
?>
<script type="text/javascript">document.title="会员注册 - <?=$GLOBALS['web_title']?>";</script>
<link rel="stylesheet" href="css/reg.css"/>
<!--主体-->
<div class="main" id="register">
<div class="main_wrap">
    <?if($h_config[$httphost]['host']=='www.paypiao.cn'){?>
    <img src="images/img/whychangepwt.png" class="whyactpft" />
    <?}elseif($h_config[$httphost]['host']=='www.trfenxiao.com'){?>
    <img src="images/img/whychangetr.png" class="whyactpft" />
    <?}else{?>
    <img src="images/img/whychangepft.png" class="whyactpft" />
    <?}?>
    <form class="ui-form reg_form" id="reg_form">
        <?=genCsrfToken();?>
        <input type="hidden" name="action" value="MemberRegister"/>
        <input type="hidden" name="actionType" value="register"/>
        <table class="reg_table">
            <tbody>
            <tr class="title">
                <td class="tab1">会员类型</td>
                <td class="tab2" colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td class="tab1"><label><input type="radio" name="dtype" value="0" <?=!$f ? 'checked="checked"':''?>/>供应商</label></td>
                <td class="tab2" colspan="2" style="padding-left: 40px;">
                    <label><input type="radio" name="dtype" value="1" <?=$f>0?'checked="checked"':''?>/>分销商</label>
                </td>
            </tr>
            </tbody>
            <tbody>
            <tr class="title">
                <td class="tab1">会员信息</td>
                <td  class="tab2" colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td class="tab1"> <span class="ui-form-required">*</span>真实姓名</td>
                <td class="tab2">
                    <input type="text" class="ui-input required" name="username" />
                </td>
                <td class="tab3">
                    <p class="normal">请填写真实姓名，便于供销商户联系</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td class="tab1"><span class="ui-form-required">*</span>手机号</td>
                <td class="tab2">
                    <input type="text" class="ui-input required" name="mobile"/>
                </td>
                <td class="tab3">
                    <p class="normal">请输入您的手机号码</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
<!--                        <span class="ui-form-required">*</span>-->
                <td class="tab1">邮箱</td>
                <td class="tab2">
                    <input type="text" class="ui-input" name="email"/>
                </td>
                <td class="tab3">
                    <p class="normal">请输入您的邮箱</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="2" class="val-top">
                    <p id="sendVcode">
                        <!--disabled="disabled" -->
                        <button id="sendVcodeBtn" class="ui-button ui-button-swhite" type="button">获取验证码</button>
                        <span id="resendCodeWait" class="sp4"><em id="countDown">60</em>秒后重新发送</span>
                    </p>
                    <p id="sendRes"></p>
                </td>
            </tr>
            <tr>
                <td class="tab1">  <span class="ui-form-required">*</span>验证码</td>
                <td class="tab2">
                    <input type="text" class="ui-input w50 required" name="vcode" value=""/>
                </td>
                <td class="tab3">
                    <p class="normal">请输入您收到的6位数验证码</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td class="tab1"><span class="ui-form-required">*</span>密码</td>
                <td class="tab2">
                    <input type="password" class="ui-input required" name="password" />
                </td>
                <td class="tab3">
                    <p class="normal">6-16个字符,请使用字母加数字或符号的组合</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr id="pwd_strength">
                <td>&nbsp;</td>
                <td colspan="2">
                    <div class="pwd_strength">
                        <span class="qian" id="sqian">密码强度</span>
                        <span class="meter-bar">
                            <div id="pwlevel" style="width: 75%;"></div>
                        </span>
                        <span id="pwlevel2">中</span>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="tab1"><span class="ui-form-required">*</span>确认密码</td>
                <td class="tab2">
                    <input type="password" data-msg="请再次输入密码" class="ui-input required" name="confirmPwd" />
                </td>
                <td class="tab3">
                    <p class="normal">请再次输入密码</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr id="alipay_id">
                <td class="tab1"><?if(!$f){?><span id="alipay_req" class="ui-form-required">*</span><?}?>支付宝账号</td>
                <td class="tab2">
                    <input type="text" data-msg="请输入支付宝账号" class="ui-input required" name="alipay" />
                </td>
                <td class="tab3">
                    <p class="normal">此为收款账户，请务必认真填写</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
           <tr id="alipay_id">
                <td class="tab1">邀请人</td>
                <td class="tab2">
                    <input type="text" data-msg="" class="ui-input " name="inviter" value="<?=$inviterID?>" />
                </td>
                <td class="tab3">
                    <p class="normal">邀请人账号</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td class="tab1">QQ</td>
                <td class="tab2">
                    <input type="text" class="ui-input" name="qq" />
                </td>
                <td class="tab3">
                    <p class="normal">请输入QQ号</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td class="tab1">性别</td>
                <td class="tab2" colspan="2">
                    <label><input type="radio" name="sex" value="M" checked="checked"/>男</label>
                    <label style="padding-left: 40px;"><input type="radio" name="sex" value="F"/>女</label>
                </td>
            </tr>
            </tbody>
            <tbody>
            <tr class="title">
                <td class="tab1">企业信息</td>
                <td class="tab2" colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td class="tab1"> <span class="ui-form-required">*</span>企业类型</td>
                <td class="tab2">
                    <select id="dt0" name="ctype0" class="dtlist" style="<?=$s1?>">
                        <option value="景区" selected="selected">景区</option>
                        <option value="酒店">酒店</option>
                        <option value="旅行社">旅行社</option>
                        <option value="其他">其他</option>
                    </select>
                    <select id="dt1" name="ctype1" class="dtlist" style="<?=$s2?>">
                        <option value="加盟门店">加盟门店</option>
                        <option value="电商/团购网">电商/团购网</option>
                        <option value="旅行社" selected="selected">旅行社</option>
                        <option value="淘宝/天猫">淘宝/天猫</option>
                        <option value="其他">其他</option>
                    </select>
                </td>
                <td class="tab3">
                    <p class="normal"></p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td class="tab1"> <span class="ui-form-required">*</span>企业名称</td>
                <td class="tab2">
                    <input type="text" class="ui-input required" name="company" />
                </td>
                <td class="tab3">
                    <p class="normal">为某一部门时，请填写XX公司XX部</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr id="license_no_tr">
                <td class="tab1">许可证编号</td>
                <td class="tab2">
                    <input type="text" class="ui-input" name="license_no" />
                </td>
                <td class="tab3">
                    <p class="normal">请输入许可证编号</p>
                    <p class="error"></p>
                    <p class="ok">&nbsp;</p>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="2">
                    <input type="button" class="submt_btn" id="submit_step2"/>
                    <p><a href="Agreement.html" target="_blank">《<?=$h_config[$httphost]['name']?>服务条款》</a></p>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</div>
<script type="text/javascript" src="js/jquery.getareas.js"></script>
<script type="text/javascript" src="js/easydialog.min.js"></script>
<script type="text/javascript" src="js/fun.inc.js"></script>
<script type="text/javascript" src="js/reg.js"></script>
<?include('common/footer.html');?>